package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

@Getter
@Setter
@TableName("user")
@ApiModel(value = "detail对象", description = "")
@ToString
@Data
@EqualsAndHashCode(callSuper = false)
public class Detail implements Serializable {
    private static final long serialVersionUID = 1L;
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("总订单信息id")
    private Long did;
    @ApiModelProperty("收货人")
    private String consignee;
    @ApiModelProperty("电话")
    private String tel;
    @ApiModelProperty("地址")
    private String address;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("下单时间")
    private String time;
}
